package com.talos.ums.controller.admin.usercompany.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "管理后台 - 用户货主关系表新增/修改 Request VO")
@Data
public class UmsUserCompanySaveReqVO {

    @Schema(description = "用户-货主-中间表 主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "19339")
    private Long id;

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2201")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "货主id", requiredMode = Schema.RequiredMode.REQUIRED, example = "5091")
    @NotNull(message = "货主id不能为空")
    private Long companyId;

}
